/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package observer;

/**
 *
 * @author pedrogazzola
 */
public class Observer {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Maquina maquina = new Maquina("Maq01");

        Monitor mon1 = new Monitor("Mon01");
        Monitor mon2 = new Monitor("Mon02");

        maquina.addMaquinaListener(mon1);
        maquina.addMaquinaListener(mon2);

        maquina.disparaMaquinaLigada();
    }
}
